import evn from "./config/evn";
import ModelShell from "./models/ModelShell";
import ShellOnLine from "./event/ShellOnLine";
import ShellStart from "./lang/ShellStart";

class shell extends ModelShell {
    private Shell = super.getShell()
    async init(): Promise<void> {
        if (!(evn()["-dev"])) {
            await ShellStart()
        }
        super.prompt();
        await this.onTick()
    }

    async onTick(): Promise<void> {
        await ShellOnLine(this.shell)
    }

}

(async () => {
    await new shell().init()
})()

